package com.carkeeper.service;

import com.carkeeper.dto.AppraisalDTO;
import com.carkeeper.service.serviceFallback.AppraisalFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;


/**
 * @author: chaolumen
 * @date ：Created in 2020/6/1
 * @description ：
 * @version: 1.0
 */
@FeignClient(value = "carkeeper-operation", fallbackFactory = AppraisalFallbackFactory.class)
public interface AppraisalFeign {

    @GetMapping("/orderAppraisal/{id}")
    AppraisalDTO getAppraisal(@PathVariable("id") String id);

    @PostMapping("/orderAppraisal/list")
    List<AppraisalDTO> getByIds(@RequestBody List<String> ids);


}
